package util;

import org.hibernate.Session;

public class ConectaHibernateMYSQL 
{
  
	 public static void main(String[] args )
	 {
	   Session sessao = null;
	   try
	   {
		sessao = HibernateUtil.getSessionFactory().openSession();
		System.out.println("Conectado.");
	   }finally
	   {
		sessao.close();   
	   }
	 }
	
}
